<!DOCTYPE html>
<html lang="en">
<head>
      <meta charset="UTF-8">
      <title>轮播图管理</title>
	  <link rel="stylesheet" href="__CSSB__/advadd.css">
	  <link rel="stylesheet" href="__CSSB__/boxdeal.css"/>
	   <link rel="stylesheet" href="__CSSB__/advdeal.css">
      <link rel="stylesheet" href="__CSSB__/reset.css">
	  <link rel="stylesheet" href="__CSSB__/apa.css">
      <link rel="stylesheet" href="__CSSB__/bootstrap.min.css">
      <script src="__JSB__/jquery.min.js"></script>
      <script src="__JSB__/popper.min.js"></script>
      <script src="__JSB__/bootstrap.min.js"></script>
      <script src="__JSB__/jquery-1.7.2.min.js"></script>
	  <script src="__JSB__/lbt.js"></script>
  
</head>
<body style="display: block;margin: 0;">
		<!--  O组 1912080222 -->
		<div class="top">
			<div class="top1">
			</div>
		<div>
			<li>
				{if (session('uNickB'))!=''}
					<div class="top1">
						<img  class="top2" src="__IMGB__/mv.jpg">
						<div>O论坛后台管理</div>
					</div>
				{/if}
			</li>
			<li><a href="{:url('deal/mesdeal',['sid' => 0])}">帖子管理</a></li>
			<li><a href="{:url('deal/userdeal')}">用户管理</a></li>
            <li><a href="{:url('deal/secdeal')}">板块管理</a></li>
            <li><a href="{:url('bindeal/binSecDeal')}">回收站管理</a></li>
            <li><a href="{:url('advdeal/advdeal')}">广告管理</a></li>
            <li><a href="{:url('advdeal/boxdeal')}">轮播图管理</a></li>
            <li><a href="{:url('admin/apa')}">修改密码</a></li>
            <li><a href="{:url('admin/alogout')}">注销</a></li>
            <li><a href="{:url('O_forum/O/forum')}">论坛前台</a></li>
			<li style="color: #FFFFFF80;">欢迎您： {:session('uNickB')}</li>
		</div>
		</div>
    
    <div id= "boxdeal_frame">
        
    <div id="boxdeal_frame_RC" class="carousel slide" data-ride="carousel">
 
        <!-- 指示符 -->
        <ol class="carousel-indicators">
          <li data-target="#boxdeal_frame_RC" data-slide-to="0" class="active"></li>
          <li data-target="#boxdeal_frame_RC" data-slide-to="1"></li>
          <li data-target="#boxdeal_frame_RC" data-slide-to="2"></li>
        </ol>
       
        <!-- O组1903010227轮播图片 -->
        <div class="carousel-inner">
          <div class="carousel-item active">
            <img src="__IMGB__/1.jpeg">
            <div class="carousel-caption">
            <h3>O组1903010227</h3>
            <span>李青</span>
            </div>
            
          </div>
          {volist name='box' id='boxrow'}
            
            
          <div class="carousel-item">
            <img src="__UPLOAD__/{$boxrow.aimg}">
            <div class="carousel-caption">
              <h3 style="color:red">{$boxrow.atitle}</h3>
              <span>{$boxrow.acontent}</span>
            </div>
          </div>
          {/volist}
        </div>
       
        <!-- O组1903010227左右切换按钮 -->
        <a class="carousel-control-prev" href="#boxdeal_frame_RC" data-slide="prev">
          <span class="carousel-control-prev-icon"></span>
        </a>
        <a class="carousel-control-next" href="#boxdeal_frame_RC" data-slide="next">
          <span class="carousel-control-next-icon"></span>
        </a>
 
      </div>
    <script type="text/javascript">

		document.getElementsByClassName('texts_adv')[0].setAttribute("style","display:inline;")

    </script>
   
	  <div id="advadd_top">
	  
			  <span>首页轮播图管理:
			
				<button type="button" id="advadd_a">
					<a href="{:url('advdeal/boxadd')}">添加轮播图</a>
					
				</button>
			
			</span>            
			  <form action="" style="flex: 10">
			  <ul> 
				  <li>
					<input type="text" placeholder="" name='check'>
					  <button type="submit" placeholder="">搜索</button>
					  
				  </li>
			  </ul>
		  </form>
	  </div>
    <div class="clear"></div>
    <!-- O组1903010227内容区域 -->

	<div class="advdeal_content">
	            <table id="boxdeal_top">
	                <tr style="">
	                    <td>序号</td>
	                    <td>图片</td>
	                    <td>标题|发布时间</td>
	                    <td>文字介绍</td>
	                    <td style="padding-left: 60px;">指向外部地址</td>
	                    <td id="box_td_cz">操作</td>
	                </tr>
	                {volist name='box' id='boxrow'}
	                    <tr>
	                    <td>{$key+1}</td>
	                    <td><img src='__UPLOAD__/{$boxrow.aimg}' id="boxdeal_img"></td>
	                    <td>{$boxrow.atitle}<br>{$boxrow.atime| date="Y-m-d H:i:s"}</td>
	                    <td>{$boxrow.acontent}</td>
	                    <td id="box_td_addr">
							<a href="{$boxrow.apath}">{$boxrow.apath}</a>
						</td>
	                    <td id="box_td_cz">
							<a href="{:url('advdeal/boxinfo',['aid'=>$boxrow.aid])}">修改 </a>
						<span>|</span>
						
	                   {if $boxrow.acheck==0}
	                       <a href="{:url('advdeal/boxok',['aid'=>$boxrow.aid])}" >
						   <span>审核通过 </span><span style="color: red;">（待审核） </span>
						   </a>
	                     <span>|</span>
	                   {elseif $boxrow.acheck==1 and $boxrow.astop==0/}
	                       <a href="{:url('advdeal/boxok',['aid'=>$boxrow.aid])}" style="color: red;">审核通过 </a>
	                    <span>|</span>
	                   {else/}
	                       <a href="{:url('advdeal/boxok',['aid'=>$boxrow.aid])}" style="color: black;">审核通过 </a> 
						<span>|</span>
	                    
	                   {/if}
	                    
	                   
	                   {if $boxrow.astop==0 or $boxrow.acheck==0} 
	                   <a href="{:url('advdeal/boxstop',['aid'=>$boxrow.aid])}" style="color: black;">暂停使用 </a> 
	                    <span>|</span>
	                   {elseif $boxrow.astop==1/}
	                   <a href="{:url('advdeal/boxstop',['aid'=>$boxrow.aid])}" style="color: red;">暂停使用 </a> 
	                    <span>|</span>
	                   {/if}
	                   
	                    <a href="#" onclick="if(confirm('确认要删除吗?')) location='{:url('advdeal/boxdel',['aid'=>$boxrow.aid])}'">删除</a></td>
	                </tr>
	                {/volist}
	            </table>
	
	</div>
 </div>
</body>
</html>